package a01;
/**
 * @author Sven Eric Panitz
 */
import java.awt.event.*;
import name.panitz.ludens.util.ShowInFrame;

public class Counter2 extends SimpleButton {
	
	private static final long serialVersionUID = 1L;

	public Counter2() {

		b.addActionListener(new ActionListener() {
			int i = 0;

			public void actionPerformed(ActionEvent e) {
				i = i + 1;
				l.setText("" + i);
			}
		});
	}

	public static void main(String[] args) {
		ShowInFrame.show(new Counter2());
	}
}
